package com.yangxiangrice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yangxiangrice.mapper.AgItemsMapper;
import com.yangxiangrice.pojo.AgItems;
import com.yangxiangrice.service.AgItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @author: shixiaojian
 * @date: 2021年11月16日 17:58
 */
@Service
public class AgItemsServiceImpl extends ServiceImpl<AgItemsMapper, AgItems> implements AgItemsService {
    @Autowired
    AgItemsMapper agItemsMapper;

    @Override
    public IPage<AgItems> seletePage(IPage<AgItems> page, QueryWrapper wrapper) {
        return agItemsMapper.selectPage(page,wrapper);
    }

    @Override
    public Integer getAgitemNum() {
        return agItemsMapper.getAgitemNum();
    }
}
